<template>
	<view>
		<view class="cu-bar ">
			<view class="action text-bold text-black m-title">猜你喜欢</view>
		</view>
		<view class="">
			<view class="grid col-2">
				<view v-for="(item,index) in list" :key="index">
					<goodsView :value="item" :stype="'map'" :indexvalue="index%2+''" :col="'2'"></goodsView>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import goodsView from '@/components/shop/goodsView.vue'
	export default {
		components: {
			goodsView
		},
		props: {
		},
		filters: {
		},
		created: function(e) {
		},
		data() {
			return {
				CLOUDPATH: this.$config.cloudPath,
				list:null
			}
		},
		methods: {
			getProduct() {
				if(this.list == null){
					this.$http
						.get('product_guess_you_like')
						.then((response) => {
							console.log(response)
							this.list = response.data.data
						})
						.catch((response) => {
							console.log(response)
						})
				}
			},
		},
	}
</script>

<style>
</style>
